this tests gets a value from the accelerometer and "plots" it on a 4-bit busOut (it just shifts the 16-bit recieved value by 12). Also outputs the value to the command line

circuit setup: 
connect acclerometer SDA to pin 2, SCL to pin 3, and power it with 3.3v.
connect a pushbutton between 3.3v and pins 21, 20, 16, and 12. A pull down resistor is optional.